<?php
namespace Home\Model;
use Think\Model;
class GoodsAttrModel extends Model {
public function getData($cid,$gid)
    {
    $sql="select c.gname, a.aname, b.avalue from itcast_attribute a,itcast_goods_attr b, itcast_goods c where a.aid = b.aid and c.gid = b.gid and a.cid=$cid and c.gid=$gid";
    $data=$this->query($sql);
    return $data;
    }
}

